<%@ page import="com.opeace.PersonPerson" %>



<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'noPickUp', 'error')} ">
	<label for="noPickUp">
		<g:message code="personPerson.noPickUp.label" default="No Pick Up" />
		
	</label>
	<g:checkBox name="noPickUp" value="${personPersonInstance?.noPickUp}" />
</div>

<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'notes', 'error')} ">
	<label for="notes">
		<g:message code="personPerson.notes.label" default="Notes" />
		
	</label>
	<g:textField name="notes" value="${personPersonInstance?.notes}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'person1', 'error')} required">
	<label for="person1">
		<g:message code="personPerson.person1.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person1" name="person1.id" from="${com.opeace.Person.list()}" optionKey="id" required="" optionValue="${{it.firstName + ' '+ it.lastName}}" value="${personPersonInstance?.person1?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'person2', 'error')} required">
	<label for="person2">
		<g:message code="personPerson.person2.label" default="Relative" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person2" name="person2.id" from="${com.opeace.Person.list()}" optionKey="id" required="" optionValue="${{it.firstName + ' '+ it.lastName}}" value="${personPersonInstance?.person2?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'pickUp', 'error')} ">
	<label for="pickUp">
		<g:message code="personPerson.pickUp.label" default="Pick Up" />
		
	</label>
	<g:checkBox name="pickUp" value="${personPersonInstance?.pickUp}" />
</div>

<div class="fieldcontain ${hasErrors(bean: personPersonInstance, field: 'relationship', 'error')} required">
	<label for="relationship">
		<g:message code="personPerson.relationship.label" default="Relationship" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="relationship" from="${com.opeace.PersonPerson$Relationship?.values()}" keys="${com.opeace.PersonPerson$Relationship.values()*.name()}" required="" value="${personPersonInstance?.relationship?.name()}"/>
</div>

